compare vt. 1.比較,對照 (with); 參照。 2.把…比作為 (to)。 3.【語法】把(形容詞、副詞)變成比較級[最高級]。 vi. 相比,匹敵 (with)。 (as) compared with 和…比起來。 be compared to 好比 (Life is compared to voyage. 人生好比航海)。 compare notes 對筆記;交換意見。 n. 比較。 beyond [past, without] compare 無與倫比的,不可及的。
Here s an example of implementing compare and swap for the intel architecture 這里是為intel體系結構實現(xiàn)比較與交換的一個示例。
On linux x86, you can use a compare and swap operation to implement atomic locking 在linuxx86上,您可以使用一個compare和swap操作來實現(xiàn)原子鎖。
For example, a sample implementation for compare and swap on linux x86 can be the following 例如,下面是linuxx86上使用compare和swap操作的一個簡單實現(xiàn):
For example, architecture-specific code will be used if you re going to exploit locks using an implementation of compare and swap instructions 例如,如果您要使用比較(compare)和交換(swap)指令的實現(xiàn)來開發(fā)鎖,那么您將要使用特定于體系結構的代碼。